<anchor> element

The <anchor> element anchors a task to a string of formatted text, often called a link. You can specify a link within any formatted text or image. When a user selects the link and presses ACCEPT, the device executes the task.

Syntax

where task represents the action to perform when the user activates the link and text is the text the device will display to represent the link:
 
task You must anchor one of the following task elements to a link: 
<go> 
<prev> 
<refresh> 
(see <go> element)
(see <prev> element)
(see <refresh> element
text Devices typically set this text off from surrounding text, for instance, by enclosing it in square brackets (see example) or underlining it if the device can display bitmap images. 

Attributes

 
title A label that identifies the link. If you do not specify the title attribute, the device uses the word "Link" as the default label. 

Devices use this attribute in a variety of ways. For example, they may use it to display a tool tip or issue a voice prompt when the user selects the link. The UP.Browser uses the title as the ACCEPT key label when the user selects the link. To ensure compatibility on a wide range of devices, label should be a maximum of five characters. 

accesskey  A number (0-9) that appears on the left side of the screen next to the link. If the user presses the corresponding key on the phone keypad, the phone executes the task defined by the link. We recommend that you number the links in the order in which they appear. 

 

Example